const jsonwebtoken = require('jsonwebtoken')
let obj ={
    name :'dadsawda',
    password:'dasfasdad'
}
let suozi='梭子'
// let totken= jsonwebtoken.sign(obj,suozi,{expiresIn:10})
// console.log(totken);

// console.log(jiemi);
let totken = `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiZGFkc2F3ZGEiLCJwYXNzd29yZCI6ImRhc2Zhc2RhZCIsImlhdCI6MTYzNTM4ODE0OCwiZXhwIjoxNjM1Mzg4MTU4fQ.Te6B0eFjgw2ZohpbJ9I9mmmewzS7HVRcKLeMSUAtBfs`
try {
    let jiemi=jsonwebtoken.verify(totken,suozi)
    console.log(jiemi);
} catch (error) {
    console.log(error);
}
console.log('我执行了');